<%@page import="com.xnx3.j2ee.Global"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<%@ taglib uri="http://www.xnx3.com/java_xnx3/xnx3_tld" prefix="x" %>
<jsp:include page="/wm/common/head.jsp">
	<jsp:param name="title" value="列表"/>
</jsp:include>

<jsp:include page="/wm/common/list/formSearch_formStart.jsp" ></jsp:include>
	<jsp:include page="/wm/common/list/formSearch_input.jsp">
		<jsp:param name="iw_label" value="网格名称"/>
		<jsp:param name="iw_name" value="name"/>
	</jsp:include>
	
    <input class="layui-btn iw_list_search_submit" type="submit" value="搜索" />
    <div style="float: right; margin-right:70px; margin-top:5px;"><font size="5" color="red">可用金额(元)：${money/100}</font></div>
</form>
<div class="tabox" style="padding:0 20px;min-width: 1200px;">
<table class="layui-table iw_table" style="min-width: 1200px;">
  <thead>
    <tr>
    	<th style="width:250px; text-align:center">代理商名称</th>
        <th style="width:250px; text-align:center">网格名称</th>
        <th style="width:100px; text-align:center">负责人</th>
        <th style="width:100px; text-align:center">手机号</th>
        <th style="width:120px; text-align:center">网格账户余额(元)</th> 
        <th style="width:150px; text-align:center">注册时间</th> 
        <th style="width:50px; text-align:center">操作</th>
    </tr> 
  </thead>
  <tbody>
  	<c:forEach items="${list}" var="item">
  		<tr>
  		  <td>${item.dailishangUsername}</td>
          <td><x:substring maxLength="25" text="${item.name }"></x:substring> </td>
          <td><x:substring maxLength="25" text="${item.username }"></x:substring> </td>
          <td>${item.phone}</td>
          <td>${item.money/100}</td>
          <td><x:time linuxTime="${item.addtime }" format="yyyy-MM-dd HH:mm"></x:time></td>
          <td style="width: 50px;">
          		<botton class="layui-btn layui-btn-sm" onclick="amount(${item.id}, '${item.name }');" style="margin-left: 3px;">分配金额</botton>
          </td>
      </tr>
    </c:forEach>
  </tbody>
</table>
</div>
<!-- 通用分页跳转 -->
<jsp:include page="/wm/common/page.jsp"></jsp:include>

<script type="text/javascript">

//分配金额
function amount(id, name){
	layer.open({
		type: 2, 
		title:'分配金额&nbsp;[&nbsp;'+name+'&nbsp;]', 
		area: ['450px', '250px'],
		shadeClose: true, //开启遮罩关闭
		content: 'goDistributionAmount.do?wanggeUserid='+id
	});
}
</script>

<jsp:include page="/wm/common/foot.jsp"></jsp:include>